package com.you.common.service.client;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.you.member.dal.dao.MemberDAO;
import com.you.member.dal.dao.dataobject.MemberDO;

public class UserTools {

    private static final ClassPathXmlApplicationContext context   = new ClassPathXmlApplicationContext(
                                                                                                       "classpath:common-application-context.xml");
    private static final MemberDAO                      memberDAO = (MemberDAO) context.getBean("memberDAO");

    public MemberDO getMember(long memberId) {
        return memberDAO.find(memberId);
    }
}
